package cuboku.cuboku;
import aima.core.search.framework.HeuristicFunction;

public class CubokuHeuristicFunction implements HeuristicFunction {

	private static int heuristica;
	public final static int H1 = 1;
	public final static int H2 = 2;
	public static final int H3 = 3;
	public static final int H4 = 4;
	
	@Override
	public double h(Object arg0) {
		CubokuLight cuboku = (CubokuLight) arg0;
		switch(heuristica) {
			case H1: return cuboku.heuristica1();
			case H2: return cuboku.heuristica2();
			case H3: return cuboku.heuristica3();
			case H4: return cuboku.heuristica4();
			default: return cuboku.heuristica1();
		}
	}
	
	public static void setHeuristica(int heuristica) {
		CubokuHeuristicFunction.heuristica = heuristica;
	}
	
	public static int getHeuristica() {
		return heuristica;
	}

}
